import requests

from com.yh.oa.utils.utils import oa_host


class Job():


    def queryJobList(self,pageNum=1,pageSize=10,postCode="",postName="",status="",token=""):
        params = {
            "pageNum": pageNum,
            "pageSize": pageSize,
            "postCode": postCode,
            "postName": postName,
            "status": status,
        }
        resp = requests.get(oa_host+"/system/post/list",params=params,headers=token)
        return resp
